import { IQueryParams } from '@/widgets/table-pagination';

export const initialQuery: IQueryParams = {
  sorter: {}, // { id: 'DESC', text: 'ASC' }
  filter: {},
  pageNum: 1,
  pageSize: 10,
};

export const initialFilter = {
  name: '',
  owner: '',
};

export const initialEntity = {
  id: '',
  name: '',
  nameIconSrc: '',
  size: '',
  owner: '',
  updateTime: '',
  avatarBg: '',
};

export const pageSizeOpts = [5, 10, 20, 50];

export const dictionaryTypes = {
  SYSTEM: { text: '系统字段', value: 'SYSTEM' },
  BUSINESS_TYPE: { text: '业务范围', value: 'BUSINESS_TYPE' },
  PRODUCT_TYPE: {
    text: '产品类型',
    value: 'PRODUCT_TYPE',
  },
  PAGE_TYPE: { text: '浏览记录页面类型', value: 'PAGE_TYPE' },
  POINT: { text: '积分设定', value: 'POINT' },
  POINT_YEAR: { text: '积分年份设定', value: 'POINT_YEAR' },
  GROUP: { text: '产业集团', value: 'GROUP' },
};
